import Vue from 'vue'
import {
  Button,
  NavBar,
  Icon,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Cell,
  CountDown,
  Tab,
  Tabs,
  Image as VanImage,
  Form,
  Field,
  Lazyload,
  Popup,
  Cascader,
  Collapse,
  CollapseItem,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  IndexBar,
  IndexAnchor,
  Search,
  SubmitBar,
  Checkbox,
  Sku
} from 'vant'

Vue.use(Button)
  .use(NavBar)
  .use(Sku)
  .use(Checkbox)
  .use(SubmitBar)
  .use(Search)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(Cell)
  .use(CountDown)
  .use(Tab)
  .use(Tabs)
  .use(VanImage)
  .use(Form)
  .use(Field)
  .use(Lazyload, {
    lazyComponent: true
  })
  .use(Popup)
  .use(Cascader)
  .use(Collapse)
  .use(CollapseItem)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(IndexBar)
  .use(IndexAnchor)
